using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace webapi.domain.Entity
{
    public class Autit
    {
        public Guid Id { get; set; }
        public string CustomerName { get; set; }
        public int TotalAmount { get; set; }
        public DateTime OrderTime { get; set; }

        public Autit(Guid id, string customerName, int totalAmount, DateTime orderTime)
        {
            Id = id;
            CustomerName = customerName;
            TotalAmount = totalAmount;
            OrderTime = orderTime;
        }

        public void UpdateOrderAmount(int newOrderAmount)
        {
            TotalAmount = newOrderAmount;
        }
    }
}